def searchStringsWithPrefix(
    strlist: list,
    prefix: str
) -> list:
    len_prefix = len(prefix)
    result_list = []
    for string in strlist:
        if string[:len_prefix] == prefix:
            result_list.append(string)
    return result_list

def stringCompressor(
    originalstr: str
) -> str:
    len_originalstr = len(originalstr)
    current_char = ''
    current_count = 0
    result_str = ''
    for index in range(len_originalstr):
        index_char = originalstr[index]
        if index_char != current_char:
            if current_count != 0:
                result_str += current_char
                result_str += str(current_count)
            current_char = index_char
            current_count = 1
        else:
            current_count += 1
        if index == len_originalstr-1:
            result_str += current_char
            result_str += str(current_count)
    return result_str

if __name__ == "__main__":
    strlist = [
        'aaabcde',
        'aabbcde',
        'aaasefs',
        'aaaaas.',
        'baaasdf'
    ]
    print(searchStringsWithPrefix(strlist, 'aaa'))
    print(stringCompressor('AAAAaaBCCCDDe'))
            